
import React, { Component} from 'react';
import classnames from 'classnames';
// import format from 'src/utils/format'
import './Yester.scss';

class EarningsYester extends Component{
  constructor(props){
    super(props);
  }
  
  render(){
    let { value,title, className,children } = this.props;
    return(
      <header className={classnames("yester",{[`${className}`]:true})}>
        <h3 className="i3-tit">{title}</h3>
        <p className="money">{value}</p>
        <div>{children}</div>
      </header>
    );
  }
};


export default EarningsYester;